package org.tongdao.yulong.basic_di.complexfield;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月28日 6:12 下午
 */
public class InjectComplexFieldAnnoApplication {
  public static void main(String[] args) {
    ApplicationContext ctx = new AnnotationConfigApplicationContext(InjectComplexFieldConfiguration.class);
    Dog bean = ctx.getBean(Dog.class);
    Cat cat = ctx.getBean(Cat.class);
    Bird bird = ctx.getBean(Bird.class);
    System.out.println(bean);
    System.out.println(cat);
    System.out.println(bird);
  }
}
